package com.yansu.own.entity.dto;

import com.yansu.own.entity.pojo.SysBanner;
import com.yansu.own.entity.vo.SysBannerMapVo;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class SysBannerUpdateDto extends SysBanner {
    /**
     * banner描述
     */
    @NotBlank(message = "请填写banner描述")
    private String description;

    /**
     * 绑定banner集合
     */
    @NotEmpty(message = "请建立banner")
    List<SysBannerMapVo> banners;
}
